<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>事件绑定</title>
		<script src="../js/vue.js"></script>
	</head>
	<body>
		<div id="app">
			展示数据：{{num}}
			<button v-on:click="num++">点我自增1</button>
			<button @click="addnum()">点我自增函数2</button>
			<div v-model="num"></div>
			
		</div>
		<script>
		const app = new Vue({
			el:"#app",
			data:{
				num:100
			},
			methods:{
				addnum:function(){
					this.num++;
				}
			}
		})
		</script>
	</body>
</html>
